Win32: Fix typo on compilation speedup macro define
authorLuca Bacci <luca.bacci982@gmail.com>
Fri, 21 Dec 2018 23:48:10 +0000 (00:48 +0100)
committerLuca Bacci <luca.bacci982@gmail.com>
Sat, 22 Dec 2018 00:18:17 +0000 (01:18 +0100)
There is a typo, the correct macro to define is WIN32_LEAN_AND_MEAN.
After this change <shellapi.h> must be included in order to use
ExtractIconExW().

gtk/gtkicontheme.c

index f1f9c8f074d091be65786671ad6b2262e2159f1b..ccdb7f77a897e5eeac92ae6326fd48a8d74a784e 100644 (file)
@@ -32,8 +32,9 @@
 #ifndef S_ISDIR
 #define S_ISDIR(mode) ((mode)&_S_IFDIR)
 #endif
-#define WIN32_MEAN_AND_LEAN
+#define WIN32_LEAN_AND_MEAN
 #include <windows.h>
+#include <shellapi.h>
 #include "win32/gdkwin32.h"
 #endif /* G_OS_WIN32 */